<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <h1 class="h1" ref="h1">{{ counter }}</h1>
    <h2>{{ compCounter }}</h2>
    
    <button @click="counter++">+1</button>

    <hr>
    {{ num }}
    <button @click="num++">+1</button>

    <h1>对象操作</h1>
    <h2>我是{{ obj.name }}, 今天{{ obj.age }}， 性别：{{ obj.sex }}</h2>


    <h1>数组</h1>
    {{ arr }}

    <h1>过滤器</h1>
    {{ word | capitalize }}
  </div>
</body>

</html>